<?php
use yii\helpers\Html;
use app\assets\AdminHomeAsset;
use \yii\helpers\Url;
AdminHomeAsset::register($this);
?>
<?php $this->beginPage();?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>爱未来兼职平台-后台</title>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="admin/index/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="admin/index/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI" />
    <script src="admin/index/js/echarts.min.js"></script>
    <?php //$this->registerJsFile('admin/index/js/echarts.min.js', [ 'position' => $this::POS_HEAD]);?>
    <?php $this->head();?>
    <script src="admin/index/js/jquery.min.js"></script>
    <?php //$this->registerJsFile('admin/index/js/jquery.min.js', [ 'position' => $this::POS_HEAD]);?>
</head>

<body data-type="<?php if(empty($this->context->type)){echo "index";}else{echo $this->context->type;}
?>">
<?php $this->beginBody();?>
<script src="admin/index/js/theme.js"></script>
<?php //$this->registerJsFile('admin/index/js/theme.js', [ 'position' => $this::POS_HEAD]);?>
<div class="am-g tpl-g">
    <!-- 头部 -->
    <header>
        <!-- logo -->
        <div class="am-fl tpl-header-logo">
            <a href="javascript:;"><img src="admin/index/img/logo.png" alt=""></a>
        </div>
        <!-- 右侧内容 -->
        <div class="tpl-header-fluid">
            <!-- 侧边切换 -->
            <div class="am-fl tpl-header-switch-button am-icon-list">
                    <span>

                </span>
            </div>
            <!-- 搜索 -->
            <div class="am-fl tpl-header-search">
                <form class="tpl-header-search-form" action="javascript:;">
                    <button class="tpl-header-search-btn am-icon-search"></button>
                    <input class="tpl-header-search-box" type="text" placeholder="搜索内容...">
                </form>
            </div>
            <!-- 其它功能-->
            <div class="am-fr tpl-header-navbar">
                <ul>
                    <!-- 欢迎语 -->
                    <li class="am-text-sm tpl-header-navbar-welcome">
                        <a href="javascript:;">欢迎你, <span><?php $session = new yii\web\Session();echo $session['Admin']['name'];?></span> </a>
                    </li>

                    <!-- 新邮件 -->
                    <li class="am-dropdown" data-am-dropdown>
                        <a href="javascript:;" class="am-dropdown-toggle" data-am-dropdown-toggle>
                            <i class="am-icon-envelope"></i>
                            <span class="am-badge am-badge-warning am-round item-feed-badge"><?php echo $this->params['finance']+$this->params['job'];?></span>
                        </a>

                        <!-- 弹出列表 -->
                        <ul class="am-dropdown-content tpl-dropdown-content">
                            <li class="tpl-dropdown-menu-notifications">
                                <a href="<?php echo Url::toRoute(['index/finance-deal'])?>" class="tpl-dropdown-menu-notifications-item am-cf">
                                    <div class="tpl-dropdown-menu-notifications-title">
                                        <i class="am-icon-envelope"></i>
                                        <span> 有<mark><?php echo $this->params['finance'];?></mark>笔新的待处理财务</span>
                                    </div>
                                </a>
                            </li>
                            <li class="tpl-dropdown-menu-notifications">
                                <a href="<?php echo Url::toRoute(['index/job-examine'])?>" class="tpl-dropdown-menu-notifications-item am-cf">
                                    <div class="tpl-dropdown-menu-notifications-title">
                                        <i class="am-icon-envelope"></i>
                                        <span> 有<mark><?php echo $this->params['job'];?></mark>个待审核的工作岗位</span>
                                    </div>
                                </a>
                            </li>
                            <li class="tpl-dropdown-menu-notifications">
                                <a href="<?php echo Url::toRoute(['index/finance-deal'])?>" class="tpl-dropdown-menu-notifications-item am-cf">
                                    <i class="am-icon-bell"></i> 进入列表…
                                </a>
                            </li>
                        </ul>
                    </li>

                    <!-- 退出 -->
                    <li class="am-text-sm">
                        <a href="<?php echo Url::toRoute(['login/log-out'])?>">
                            <span class="am-icon-sign-out"></span> 退出
                        </a>
                    </li>
                </ul>
            </div>
        </div>

    </header>
    <!-- 风格切换 -->
    <div class="tpl-skiner">
        <div class="tpl-skiner-toggle am-icon-cog">
        </div>
        <div class="tpl-skiner-content">
            <div class="tpl-skiner-content-title">
                选择主题
            </div>
            <div class="tpl-skiner-content-bar">
                <span class="skiner-color skiner-white" data-color="theme-white"></span>
                <span class="skiner-color skiner-black" data-color="theme-black"></span>
            </div>
        </div>
    </div>
    <!-- 侧边导航栏 -->
    <div class="left-sidebar">
        <!-- 用户信息 -->
        <div class="tpl-sidebar-user-panel">
            <div class="tpl-user-panel-slide-toggleable">
<!--                <div class="tpl-user-panel-profile-picture">-->
<!--                    <img src="admin/index/img/user04.png" alt="">-->
<!--                </div>-->
                <span class="user-panel-logged-in-text">
              <i class="am-icon-circle-o am-text-success tpl-user-panel-status-icon"></i>
              管理员：<?php echo $session['Admin']['name'];?>
          </span>
                <a href="javascript:;" class="tpl-user-panel-action-link"> <span class="am-icon-pencil"></span> 账号设置</a>
            </div>
        </div>

        <!-- 菜单 -->
        <ul class="sidebar-nav">
            <li class="sidebar-nav-heading">后台管理 <span class="sidebar-nav-heading-info"> 导航列表</span></li>
            <li class="sidebar-nav-link">
                <a href="<?php echo Url::toRoute(['index/index']); ?>" class="active">
                    <i class="am-icon-home sidebar-nav-link-logo"></i> 首页
                </a>
            </li>
            <li class="sidebar-nav-link">
                <a href="javascript:;" class="sidebar-nav-sub-title">
                    <i class="am-icon-table sidebar-nav-link-logo"></i> 公告管理
                    <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
                </a>
                <ul class="sidebar-nav sidebar-nav-sub">
                    <li class="sidebar-nav-link">
                        <a href="<?php echo Url::toRoute(['index/tips']); ?>">
                            <span class="am-icon-angle-right sidebar-nav-link-logo"></span> 公告列表
                        </a>
                    </li>

                    <li class="sidebar-nav-link">
                        <a href="<?php echo Url::toRoute(['index/tips-add']); ?>">
                            <span class="am-icon-angle-right sidebar-nav-link-logo"></span> 发布公告
                        </a>
                    </li>

                    <li class="sidebar-nav-link">
                        <a href="<?php echo Url::toRoute(['index/banner-list']); ?>">
                            <span class="am-icon-angle-right sidebar-nav-link-logo"></span> 首页轮播
                        </a>
                    </li>

                    <li class="sidebar-nav-link">
                        <a href="<?php echo Url::toRoute(['index/banner-add']); ?>">
                            <span class="am-icon-angle-right sidebar-nav-link-logo"></span> 发布轮播
                        </a>
                    </li>
                </ul>
            </li>
            <li class="sidebar-nav-link">
                <a href="javascript:;" class="sidebar-nav-sub-title">
                    <i class="am-icon-table sidebar-nav-link-logo"></i> 用户管理
                    <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
                </a>
                <ul class="sidebar-nav sidebar-nav-sub">
                    <li class="sidebar-nav-link">
                        <a href="<?php echo Url::toRoute('index/enterprise-manage');?>">
                            <span class="am-icon-angle-right sidebar-nav-link-logo"></span> 企业用户
                        </a>
                    </li>

                    <li class="sidebar-nav-link">
                        <a href="<?php echo Url::toRoute('index/user-manage');?>">
                            <span class="am-icon-angle-right sidebar-nav-link-logo"></span> 普通用户
                        </a>
                    </li>
                    <li class="sidebar-nav-link">
                        <a href="<?php echo Url::toRoute('index/feedback');?>">
                            <span class="am-icon-angle-right sidebar-nav-link-logo"></span> 意见反馈
                        </a>
                    </li>
                </ul>
            </li>
            <li class="sidebar-nav-link">
                <a href="javascript:;" class="sidebar-nav-sub-title">
                    <i class="am-icon-table sidebar-nav-link-logo"></i> 职位管理
                    <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
                </a>
                <ul class="sidebar-nav sidebar-nav-sub">
                    <li class="sidebar-nav-link">
                        <a href="<?php echo Url::toRoute(['index/job-list']); ?>">
                            <span class="am-icon-angle-right sidebar-nav-link-logo"></span> 职位列表
                        </a>
                    </li>

                    <li class="sidebar-nav-link">
                        <a href="<?php echo Url::toRoute(['index/job-add']); ?>">
                            <span class="am-icon-angle-right sidebar-nav-link-logo"></span> 添加职位
                        </a>
                    </li>
                </ul>
            </li>
            <li class="sidebar-nav-link">
                <a href="javascript:;" class="sidebar-nav-sub-title">
                    <i class="am-icon-table sidebar-nav-link-logo"></i> 财务管理
                    <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
                </a>
                <ul class="sidebar-nav sidebar-nav-sub">
                    <li class="sidebar-nav-link">
                        <a href="<?php echo Url::toRoute(['index/finance-deal']); ?>">
                            <span class="am-icon-angle-right sidebar-nav-link-logo"></span> 待处理列表
                        </a>
                    </li>
                    <li class="sidebar-nav-link">
                        <a href="<?php echo Url::toRoute(['index/finance-list']); ?>">
                            <span class="am-icon-angle-right sidebar-nav-link-logo"></span> 财务记录列表
                        </a>
                    </li>
                </ul>
            </li>
            <li class="sidebar-nav-link">
                <a href="javascript:;" class="sidebar-nav-sub-title">
                    <i class="am-icon-table sidebar-nav-link-logo"></i> 微信管理
                    <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
                </a>
                <ul class="sidebar-nav sidebar-nav-sub">
                    <li class="sidebar-nav-link">
                        <a href="<?php echo Url::toRoute(['index/index']); ?>">
                            <span class="am-icon-angle-right sidebar-nav-link-logo"></span> 等待开发
                        </a>
                    </li>
                </ul>
            </li>
            <li class="sidebar-nav-link">
                <a href="javascript:;" class="sidebar-nav-sub-title">
                    <i class="am-icon-table sidebar-nav-link-logo"></i> 系统设置
                    <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
                </a>
                <ul class="sidebar-nav sidebar-nav-sub">
                    <li class="sidebar-nav-link">
                        <a href="<?php echo Url::toRoute(['index/config']);?>">
                            <span class="am-icon-angle-right sidebar-nav-link-logo"></span> 全局配置
                        </a>
                    </li>
                </ul>
            </li>

        </ul>
    </div>

    <?php echo $content; ?>

</div>
</div>
<?php $this->endBody();?>
</body>

</html>
<?php $this->endPage();
